package com.smartfactory.sail.service;

import com.smartfactory.sail.entity.ItemWorkingprocedure;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.vo.item.ItemWorkingprocedureResp;
import com.smartfactory.sail.vo.item.ItemWorkingprocedureSimpleResp;

import java.util.List;

/**
 * <p>
 * 产品工序表 服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-13
 */
public interface IItemWorkingprocedureService extends IService<ItemWorkingprocedure> {

    List<ItemWorkingprocedure> findByItemId(long itemId, long dept);

    List<ItemWorkingprocedureResp> detail(long orderId, long itemId, long dept);

    List<ItemWorkingprocedureSimpleResp> simple(long orderId, long itemId, long dept);

    double orderProgress(long orderId);

    boolean isLastWp(long itemId, long workingProcedureId, long dept);

    boolean isComplate(Long orderItemIId);
}
